package com.ourhealth.service;

import com.ourhealth.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingService {
    /**
     * 新建或修改预约人数上限
     * @param orderSetting
     */
    void handleOrderSet(OrderSetting orderSetting);

    /**
     * 判断是否已经生成该日期的预约人数上限
     * @return
     * @param date
     */
    int isHandleOrderSet(Date date);

    /**
     * 更新该日期的预约人数上限
     *@param orderSetting
     */
    void updateHandleOrderSet(OrderSetting orderSetting);

    /**
     * 添加该日期的预约人数上限
     *@param orderSetting
     */
    void addHandleOrderSet(OrderSetting orderSetting);

    /**
     * 通过月份获取预约详情
     * @return
     */
    List<Map> getOrderSettingByMonth(String date);

    /**
     * 批量导入设置
     * @param orderSettingList
     */
    void addOrderSettingList(List<OrderSetting> orderSettingList);
}
